<link rel="stylesheet" href="/assets/home/css/center.css" />


<!-- 头部 -->
<div class="user">
    <div class="avatar">
        <img src="{$Business['avatar_text']}" />
    </div>

    <div class="nickname">{$Business['nickname']}</div>
</div>

<!-- 菜单 -->
<div class="menulist">

    <div class="commonly-used">
        <div class="title">常用工具</div>
        <div class="list">
            <div class="item">
                <a href="{:url('home/business/profile')}">
                    <img src="/assets/home/images/profile.png" alt="">
                    <div class="name">基本资料</div>
                </a>
            </div>

            <div class="item">
                <a href="{:url('home/business/subject')}">
                    <img src="/assets/home/images/course.png" alt="">
                    <div class="name">我的课程</div>
                </a>
            </div>

            <div class="item">
                <a href="{:url('home/business/email')}">
                    <img src="/assets/home/images/email.png" alt="">
                    <div class="name">邮箱认证</div>
                </a>
            </div>

            <div class="item">
                <a href="{:url('home/business/coupon')}">
                    <img src="/assets/home/images/coupon.png" alt="">
                    <div class="name">我的优惠券</div>
                </a>
            </div>

            <div class="item">
                <a href="{:url('home/business/follow')}">
                    <img src="/assets/home/images/order_1.png" alt="">
                    <div class="name">我的关注</div>
                </a>
            </div>

            <div class="item">
                <a href="{:url('home/business/collection')}">
                    <img src="/assets/home/images/collection.png" alt="">
                    <div class="name">我的收藏</div>
                </a>
            </div>

            <div class="item">
                <a href="record.html">
                    <img src="/assets/home/images/record.png" alt="">
                    <div class="name">消费记录</div>
                </a>
            </div>

            <div class="item">
                <a href="{:url('home/business/pay')}">
                    <img src="/assets/home/images/recharge.png" alt="">
                    <div class="name">余额充值</div>
                </a>
            </div>

            <div class="item">
                <a href="{:url('home/business/contact')}">
                    <img src="/assets/home/images/contact.png" alt="">
                    <div class="name">联系我们</div>
                </a>
            </div>

            <div class="item" id="logout">
                <a>
                    <img src="/assets/home/images/logout_1.png" alt="">
                    <div class="name">退出账号</div>
                </a>
            </div>
        </div>
    </div>

    <div class="promotion">
        <div class="title">推广管理</div>
        <div class="list">
            <div class="item">
                <a href="{:url('home/team/poster')}">
                    <img src="/assets/home/images/poster.png" alt="">
                    <div class="name">推广海报</div>
                </a>
            </div>

            <div class="item">
                <a href="team.html">
                    <img src="/assets/home/images/team.png" alt="">
                    <div class="name">我的团队</div>
                </a>
            </div>

            <div class="item">
                <a href="{:url('home/team/commission')}">
                    <img src="/assets/home/images/money.png" alt="">
                    <div class="name">提现</div>
                </a>
            </div>
        </div>
    </div>
</div>

<!-- 引入底部 -->
{include file="common/footer" /}

<script>
    $('#logout').click(() => {
        mui.confirm(
            '是否确认退出',
            '退出提醒',
            ['确认','取消'],
            function (res) {
                if (res.index === 0) {
                    location.href = `{:url('home/index/logout')}`
                }
            }
        )
    })
</script>

